<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/util.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var getcampaignJsonListUrl = "/campaign/getJsonList/";
$(document).ready(function() {
	startMasker();
	$.ajax({
		type: "GET",
		url: getcampaignJsonListUrl,
		data: "",
		dataType: "json",
		success: function(data) {
			if(data.code > 0) {
				var resultList = data.result;
				var renderHtml = "[<br/>";
				for(var i=0;i<resultList.length;i++) {
					var result = resultList[i];
					$("#campaignId").html(result.campaignId);
					$("#deployId").html(result.deployId);
					$("#name").html('"'+result.name+'"');					$("#desc").html('"'+result.desc+'"');					$("#battlePointIds").html(result.battlePointIds);					$("#status").html(result.status);					$("#vip").html(result.vip);					$("#mapId").html(result.mapId);					$("#userLevel").html(result.userLevel);					$("#coorX").html(result.coorX);					$("#coorY").html(result.coorY);					$("#music").html(result.music);					$("#frontCompaignIds").html(result.frontCompaignIds);					$("#afterCompaignIds").html(result.afterCompaignIds);										
					renderHtml = renderHtml + $("#tpl_campaign").html();
					if(i < resultList.length - 1) {
						renderHtml = renderHtml + ","
					}
				}
				renderHtml = renderHtml + "]<br/>";
				$("#campaign_info").html(renderHtml);
				stopMasker();
			}else {
				errDialog(data.message);
			}
		}
});
});

</script>
<body>
<div class="json" id="campaign_info">

</div>
<div style="display:none" id="tpl_campaign">
<div class="json">
{<br/>
<span class="jsonkey">campaignId:</span><span id="campaignId"></span>,<br/>
<span class="jsonkey">deployId:</span><span id="deployId"></span>,<br/>
<span class="jsonkey">name:</span><span id="name" class="jsonvalue"></span>,<br/>
<span class="jsonkey">desc:</span><span id="desc" class="jsonvalue"></span>,<br/>
<span class="jsonkey">battlePointIds:</span><span id="battlePointIds" class="jsonvalue"></span>,<br/>
<span class="jsonkey">status:</span><span id="status" class="jsonvalue"></span>,<br/>
<span class="jsonkey">vip:</span><span id="vip" class="jsonvalue"></span>,<br/>
<span class="jsonkey">mapId:</span><span id="mapId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">userLevel:</span><span id="userLevel" class="jsonvalue"></span>,<br/>
<span class="jsonkey">coorX:</span><span id="coorX" class="jsonvalue"></span>,<br/>
<span class="jsonkey">coorY:</span><span id="coorY" class="jsonvalue"></span>,<br/>
<span class="jsonkey">music:</span><span id="music" class="jsonvalue"></span>,<br/>
<span class="jsonkey">frontCompaignIds:</span><span id="frontCompaignIds" class="jsonvalue"></span>,<br/>
<span class="jsonkey">afterCompaignIds:</span><span id="afterCompaignIds" class="jsonvalue"></span><br/>
</br>
}
</div>
</div>
<div class="maskerContent" id="framemasker" name="framemasker">
	<iframe class="maskframe" src="/pages/core/Masker.html"></iframe>
</div>
</body>